package com.isnotlocus.gulimail.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;

/**
 * 允许该服务被服务注册中心发现
 * 因为该项目依赖了gulimail-common 所以就会依赖mybatis-plus 中有一个exclude = DataSourceAutoConfiguration.class 会
 * 自动去查找datasouce配置url，如果没有就会报错，所以这里最好排除掉
 */
@EnableDiscoveryClient
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class GulimailGatewayApplication {

    public static void main(String[] args) {
        SpringApplication.run(GulimailGatewayApplication.class, args);
    }

}
